# http://sneaq.net/textmate-wtf
$:.reject! { |e| e.include? 'TextMate' }

require 'test/unit'
require 'rubygems'
require 'activerecord'
require 'shoulda'
require 'shoulda/active_record'

lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
require 'is_tree'

Dir[File.join(File.dirname(__FILE__), "support" ,"*.rb")].each do |file|
  require file
end

ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:")
ActiveRecord::Base.configurations = true
 
ActiveRecord::Schema.verbose = false
ActiveRecord::Schema.define(:version => 1) do
  
  create_table :people do |t|
    t.string :name
    t.integer :parent_id
  end
  
end
